package com.wicket.okrfinance.biz.service.dto.common;

import com.wicket.okrfinance.common.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.validation.constraints.NotNull;
import lombok.Data;
import java.util.Objects;

/**
 * @desc SubCycleDto
 * @使用场景
 */
@Data
public class SubCycleDto extends BaseDto implements Serializable {

  /**
   * 被评对象目标周期ID
   */
  @NotNull(message = "被评对象目标周期ID不能为空")
  @ApiModelProperty("被评对象目标周期ID")
  private String evaObjTargetCycleId;

  /**
   * 上级被评对象目标周期标识
   */
  @NotNull(message = "上级被评对象目标周期标识不能为空")
  @ApiModelProperty("上级被评对象目标周期标识")
  private String parentEvaObjTargetCycleId;
/**
     * 周期ID
     */
    @NotNull(message = "周期ID不能为空")
@ApiModelProperty("周期ID")
    private String	 cycleId;
@Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      SubCycleDto that = (SubCycleDto) o;
      return  evaObjTargetCycleId == that.evaObjTargetCycleId&&parentEvaObjTargetCycleId == that.parentEvaObjTargetCycleId&&cycleId == that.cycleId;
    }
@Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), evaObjTargetCycleId,parentEvaObjTargetCycleId,cycleId);
    }

}
